package com.emip.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "T_Site")
public class SiteBean implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "userGenerator")     
	@GenericGenerator(name = "userGenerator", strategy = "assigned") 
	private String id;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "MTypeID")
	private MonitorTypeBean monitorType;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "areaID")
	private AreaBean area;
	@Column(name="name")
	private String name ;
	@Column(name="gprsID")
	private String gprsID;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "valleyID")
	private ValleyBean valley;
	@Column(name="qualityName")
	private String qualityName;
	@Column(name="qualityLevel")
	private int qualityLevel;
	@Column(name="contact")
	private String contact;
	@Column(name="telephone")
	private String telephone;
	@Column(name="mobile")
	private String mobile;
	@Column(name="eMail")
	private String eMail;
	@Column(name="ipAddress")
	private String ipAddress;
	@Column(name="port")
	private String port;
	@Column(name="freqMin")
	private int freqMin;
	@Column(name="onlineStatus")
	private String onlineStatus;
	@Column(name="lastLoginTime")
	private Date lastLoginTime;
	@Column(name="gpsFixed")
	private String gpsFixed;
	@Column(name="fixtedLongitude")
	private String fixtedLongitude;
	@Column(name="fixtedLatitude")
	private String fixtedLatitude;
	@Column(name="curLongitude")
	private String curLongitude;
	@Column(name="curLatitude")
	private String curLatitude;
	@Column(name="remark")
	private String remark;
	@Column(name="longitudeSetoff")
	private float longitudeSetoff;
	@Column(name="latitudeSetoff")
	private float latitudeSetoff;
	
	
	
	
	public SiteBean() {
		
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setMonitorType(MonitorTypeBean monitorType) {
		this.monitorType = monitorType;
	}
	public MonitorTypeBean getMonitorType() {
		return monitorType;
	}
	public void setArea(AreaBean area) {
		this.area = area;
	}
	public AreaBean getArea() {
		return area;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setValley(ValleyBean valley) {
		this.valley = valley;
	}
	public ValleyBean getValley() {
		return valley;
	}
	public void setGprsID(String gprsID) {
		this.gprsID = gprsID;
	}
	public String getGprsID() {
		return gprsID;
	}
	public int getQualityLevel() {
		return qualityLevel;
	}
	public void setQualityLevel(int qualityLevel) {
		this.qualityLevel = qualityLevel;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String geteMail() {
		return eMail;
	}
	public void seteMail(String eMail) {
		this.eMail = eMail;
	}
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public int getFreqMin() {
		return freqMin;
	}
	public void setFreqMin(int freqMin) {
		this.freqMin = freqMin;
	}
	public String getOnlineStatus() {
		return onlineStatus;
	}
	public void setOnlineStatus(String onlineStatus) {
		this.onlineStatus = onlineStatus;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setGpsFixed(String gpsFixed) {
		this.gpsFixed = gpsFixed;
	}
	public String getGpsFixed() {
		return gpsFixed;
	}

	public void setQualityName(String qualityName) {
		this.qualityName = qualityName;
	}
	public String getQualityName() {
		return qualityName;
	}
	public void setFixtedLongitude(String fixtedLongitude) {
		this.fixtedLongitude = fixtedLongitude;
	}
	public String getFixtedLongitude() {
		return fixtedLongitude;
	}
	public void setFixtedLatitude(String fixtedLatitude) {
		this.fixtedLatitude = fixtedLatitude;
	}
	public String getFixtedLatitude() {
		return fixtedLatitude;
	}
	public void setCurLongitude(String curLongitude) {
		this.curLongitude = curLongitude;
	}
	public String getCurLongitude() {
		return curLongitude;
	}
	public void setCurLatitude(String curLatitude) {
		this.curLatitude = curLatitude;
	}
	public String getCurLatitude() {
		return curLatitude;
	}
	public void setLongitudeSetoff(float longitudeSetoff) {
		this.longitudeSetoff = longitudeSetoff;
	}
	public float getLongitudeSetoff() {
		return longitudeSetoff;
	}
	public void setLatitudeSetoff(float latitudeSetoff) {
		this.latitudeSetoff = latitudeSetoff;
	}
	public float getLatitudeSetoff() {
		return latitudeSetoff;
	}
}
